﻿using System;

namespace Istace.Framework.Mapping.Core.Interfaces
{
    /// <summary>
    /// 
    /// </summary>
    public interface IMappingTuple
    {
        /// <summary>
        /// The destination mapper type
        /// </summary>
        Type Destination { get; }

        /// <summary>
        /// The source mapper type
        /// </summary>
        Type Source { get; }

        /// <summary>
        /// Convert a MappingTuple to his string representation
        /// </summary>
        /// <returns></returns>
        string ToString();

        /// <summary>
        /// Compare two IMappingTuple
        /// </summary>
        /// <param name="instance">The object to compare</param>
        /// <returns>Return 0 if the same, -1 else</returns>
        int CompareTo(object instance);
    }
}
